* {
  box-sizing: border-box;
}

.mind-map-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.toolbar {
  padding: 10px;
  display: flex;
  gap: 10px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

.canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  width: 100%;
}

.instructions {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  background-color: rgba(245, 245, 245, 0.9) !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-path {
  fill: none;
  stroke: #999;
  stroke-width: 2px;
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 10px 15px;
  border-radius: 5px;
  cursor: move;
  user-select: none;
  transition: box-shadow 0.2s ease;
  min-width: 100px;
  text-align: center;
}

.node-root {
  background-color: #4CAF50;
  color: white;
}

.node-child {
  background-color: #2196F3;
  color: white;
}

.node-selected {
  box-shadow: 0 0 0 2px #FF9800;
}

.node input {
  background: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  text-align: center;
  width: 100%;
  outline: none;
}